package com.yml.mall.product.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;
@Data
@EqualsAndHashCode
@ApiModel("商品对象")
public class ProductDO {
    @ApiModelProperty( "ID")
    private Integer id;
    @ApiModelProperty( "类目ID")
    private Integer categoryId;
    @ApiModelProperty( "商品名/标题")
    private String name;
    @ApiModelProperty( "副标题")
    private String subtitle;
    @ApiModelProperty( "主相片")
    private String mainImage;
    @ApiModelProperty( "价格")
    private BigDecimal price;
    @ApiModelProperty( "库存")
    private Integer stock;
    @ApiModelProperty( "状态是否被删除")
    private Integer status;
    @ApiModelProperty( "创建时间")
    private Date createTime;
    @ApiModelProperty( "更新时间")
    private Date updateTime;
    @ApiModelProperty( "详情展示相册")
    private String subImages;
    @ApiModelProperty( "详情信息")
    private String detail;
}